package _15_command_pattern.v_common;

import _15_command_pattern.v_common.command.Command;

/**
 * @Description: 调用者Invoker类
 * @Auther: 2019/6/25 9:19 by zhang.jy
 */
public class Invoker {
	private Command command;

	//受气包，接受命令
	public void setCommand(Command _command) {
		this.command = _command;
	}

	//执行命令
	public void action() {
		this.command.execute();
	}
}